from django.contrib.auth.models import User
from django.db import models
from utils.modelsMiXin import ModelSetMiXin

# Create your models here.
class Classes(ModelSetMiXin):
    name = models.CharField(max_length=30,verbose_name='班级名')
    slogan = models.CharField(max_length=50,null=True,blank=True,verbose_name='班级口号')

    member = models.ManyToManyField(User)

    class Meta: #规定表名
        db_table = 'classes'
        verbose_name = '班级' #访问的名字
        verbose_name_plural = verbose_name #反向访问的名字





